{include file="file:$admin_theme_global_path/_header.tpl" masthead="Blog"}
<div class="grid_4 sidenav">
	<h3>{t}Options{/t}</h3>
	<ul>
		<li><a href="{url}/blog/admin/edit{/url}">{t}New Post{/t}</a></li>
	</ul>
</div>
<div class="grid_12">
	{if count($posts) gt 0}
		<div class="grid_12 faux-thead alpha omega">
			<div class="grid_8 alpha">{t}Title{/t}</div>
			<div class="grid_4 omega">{t}Created On{/t}</div>
		</div>
		{foreach from=$posts item=post key=index}
			<div class="grid_12{if ($index + 1) mod 2 eq 0} even{else} odd{/if} faux-tr  alpha omega">
				<div class="grid_8 alpha">
					<a href="/blog/admin/edit/id/{$post.id}">{$post.title}</a>
				</div>
				<div class="grid_4 omega">
					{$post.created_on}
				</div>
			</div>
		{/foreach}
	{else}
		<p>{t}There are no posts.{/t}</p>
	{/if}
</div>
{include file="file:$admin_theme_global_path/_footer.tpl"}
